/**
 * 
 */
package com.fitso.model.bean.measure.energy;

import java.math.BigDecimal;

public class Calorie extends Energy {
	private static final long serialVersionUID = 1L;
	
	private static final BigDecimal FROM_BASE = BigDecimal.valueOf(239.005736);
	private static final BigDecimal TO_BASE = BigDecimal.valueOf(0.004184);

	public Calorie() {
		super();
	}

	public Calorie(Integer value) {
		super(value);
	}

	public Calorie(Double value) {
		super(value);
	}

	public Calorie(BigDecimal value) {
		super(value);
	}

	public Calorie(Energy energy) {
		super(energy);
	}

	protected BigDecimal getFromBaseUnitFactor() {
		return FROM_BASE;
	}

	protected BigDecimal getToBaseUnitFactor() {
		return TO_BASE;
	}

	public String getUnitMark() {
		return "calories";
	}

	protected int getScale() {
		return 6;
	}

	public static Calorie zero() {
		return new Calorie(0);
	}
}